import xlrd

data = xlrd.open_workbook('test.xlsx')

table = data.sheets()[0]
# 返回单元格对象
# print(table.cell(0, 0))
# print(table.cell(0, 1))
# print(table.cell(0, 2))

# 返回对应位置单元格中的数据
print(table.cell_value(0, 0))
print(table.cell_value(0, 1))
print(table.cell_value(0, 2))



